package Salesman;

import org.rlpw.swing.table.Column;

public class City {

    @Column("Stadt")
    private String name = "no name";
    @Column("Kürzel")
    private String shortName = "n/a";
    @Column("Breitengrad")
    private double xPos = 0.0;
    @Column("Längengrad")
    private double yPos = 0.0;
    @Column(value = "besuchen?", resizable=false)
    private boolean inSimulation = false;

    public City() {
    }

    public City(String name, String shortName, double xPos, double yPos, boolean sim) {
        this.name = name;
        this.shortName = shortName;
        this.xPos = xPos;
        this.yPos = yPos;
        this.inSimulation = sim;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public double getxPos() {
        return xPos;
    }

    public void setxPos(double xPos) {
        this.xPos = xPos;
    }

    public double getyPos() {
        return yPos;
    }

    public void setyPos(double yPos) {
        this.yPos = yPos;
    }

    public boolean isInSimulation() {
        return inSimulation;
    }

    public void setInSimulation(boolean inSimulation) {
        this.inSimulation = inSimulation;
    }

    @Override
    public String toString() {
        return name;
    }
}
